
package ch.hearc.coursJava.moo.thread.addition;

public class IntegerAlterable
	{

	/*------------------------------------------------------------------*\
	|*							Constructeurs							*|
	\*------------------------------------------------------------------*/

	public IntegerAlterable(int x)
		{
		this.x = x;
		}

	/*------------------------------------------------------------------*\
	|*							Methodes Public							*|
	\*------------------------------------------------------------------*/

	@Override
	public String toString()
		{
		StringBuilder builder = new StringBuilder();
		builder.append("IntegerAlterable [x=");
		builder.append(this.x);
		builder.append("]");
		return builder.toString();
		}

	/*------------------------------*\
	|*				Set				*|
	\*------------------------------*/

	public void set(int x)
		{
		this.x = x;
		}

	/*------------------------------*\
	|*				Get				*|
	\*------------------------------*/

	public int get()
		{
		return this.x;
		}

	/*------------------------------------------------------------------*\
	|*							Methodes Private						*|
	\*------------------------------------------------------------------*/

	/*------------------------------------------------------------------*\
	|*							Attributs Private						*|
	\*------------------------------------------------------------------*/

	// input/output
	private int x;

	}
